# -*- coding: utf-8 -*-
# @Time : 2019/1/11 16:21
# @Author : Administrator
# @File : start.py
# @Project : untitled1
# @title :
import glob
import unittest
from boss_1.case.test_case.interface1 import modify
from boss_1.case.test_case.interface import port
from HTMLTestRunner import HTMLTestRunner

file=glob.glob('.\\case\\test_case\\interface*.py')
# for f in file:
#     os.system('python %s 1 >> log.txt 2>&1'%f)
if __name__ == '__main__':

    suite=unittest.TestSuite()
    # suite.addTests(unittest.TestLoader().loadTestsFromModule(interface))
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(port,modify))
    with open("test.html","w",encoding="utf8") as f:
        runner = HTMLTestRunner(stream=f, verbosity=1, title="登录测试", description="蜗牛Boss系统登录测试")
        runner.run(suite)